package io.xxx.mario.wechaty;

import org.springframework.data.util.Pair;
import org.springframework.http.HttpMethod;

import java.util.Collections;
import java.util.List;
import java.util.Map;

public interface RobotRequest<R extends RobotResponse> {

    /**
     * 请求方式
     */
    HttpMethod httpMethod();

    String path();

    default Map<String, Object> queryParams() {
        return Collections.emptyMap();
    }

    default Map<String, Object> body() {
        return Collections.emptyMap();
    }

    default List<Pair<Integer, String>> validate() {
        return Collections.emptyList();
    }

    Class<R> responseType();
}
